<template>
  <div class="noticeContent">
    <div class="title">
      <div class="line"></div>
      <div class="name">通知管理</div>
      <div class="btns">
        <div class="btn add">新增</div>
        <div class="btn">导出</div>
      </div>
    </div>
    <div class="search">
      <div class="inputItem">
        <span>通知标题</span>
        <CommonInput v-model="noticeForm.title" placeholder="请输入通知标题" />
      </div>
      <div class="inputItem">
        <span>通知时间</span>
        <CommonDateSelect v-model="noticeForm.date" />
      </div>
      <div class="btns">
        <div class="btn searchBtn">查询</div>
        <div class="btn reset">重置</div>
      </div>
    </div>
    <div class="content">
      <CommonTablePage :columns="noticeColumns" :tableData="tableData"></CommonTablePage>
    </div>
    <ChangeNoticeDialog :changeDialogShow.sync="changeDialogShow" :curRow="curRow"></ChangeNoticeDialog>
  </div>
</template>
<script>
import { noticeColumns } from "./columns"
import ChangeNoticeDialog from "./components/changNoticeDialog"
export default {
  components: {
    ChangeNoticeDialog
  },
  data() {
    return {
      curRow:{

      },
      noticeColumns,
      tableData: [
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
        {},
      ],
      noticeForm: {
        title: '',
        date: ''
      },
      changeDialogShow: false
    }
  }
};
</script>

<style lang="less" scoped>
.noticeContent {
  height: 100%;
  display: flex;
  flex-direction: column;

  .title {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 10px;
    padding-left: 30px;
    background-color: #fff;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 15px;

    .btns {
      display: flex;
      margin-left: auto;

      .add {
        margin-right: 8px;
      }
    }

    .line {
      height: 20px;
      background-color: #fc7414;
      width: 6px;
      margin-right: 10px;
    }

    .btn {
      margin-left: auto;
      width: 68px;
      height: 32px;
      font-size: 16px;
      font-weight: normal;
      color: #fff;
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #fc6c09;
      cursor: pointer;
    }
  }

  .search {
    height: 80px;
    margin-top: 15px;
    padding: 10px;
    padding-left: 30px;
    height: 80px;
    display: flex;
    align-items: center;
    background-color: #fff;

    .inputItem {
      display: flex;
      align-items: center;
      margin-right: 20px;

      span {
        margin-right: 8px;
      }
    }

    .btns {
      margin-left: auto;
      display: flex;

      .btn {
        width: 68px;
        height: 32px;
        font-size: 16px;
        font-weight: normal;
        color: #fff;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fc6c09;
        cursor: pointer;
      }

      .reset {
        background-color: #fff;
        color: #fc6c09;
        border: 1px solid #fc6c09;
        margin-left: 8px;
      }
    }
  }

  .content {
    margin-top: 15px;
    padding: 15px 10px 10px 30px;
    flex: 1;
    display: flex;
    background-color: #fff;
  }
}
</style>
